<?php
namespace app\modules\m\controllers\common;


use app\common\components\BaseWebController;
use app\common\service\UrlService;

class BaseController extends BaseWebController
{
    public $auth_cookie_current_openid = "shop_m_openid";
    public $layout = 'main';
    public $current_user = ['id'=>1];

    public function beforeAction( $action )
    {

        return true;
    }

    public function goHome()
    {
        return $this->redirect( UrlService::buildMUrl( "/default/index" ) );
    }
}